Skip to content

feat(language): add tooltip support with configurable tooltip-format#5012

Open
yihangwu539-png wants to merge 1 commit intoAlexays:masterfrom
yihangwu539-png:feat/language-tooltip
Open

feat(language): add tooltip support with configurable tooltip-format#5012
yihangwu539-png wants to merge 1 commit intoAlexays:masterfrom
yihangwu539-png:feat/language-tooltip

Conversation

@yihangwu539-png
Copy link
Copy Markdown

Description

Adds tooltip support to the hyprland/language module. When tooltip is enabled (default), the tooltip displays the keyboard layout information using tooltip-format config option, with the same format replacements as the format option.

Config Example

"hyprland/language": {
    "format": "{short}",
    "tooltip": true,
    "tooltip-format": "Layout: {long}"
}

When tooltip-format is not specified, it defaults to {long} (the full layout name).

Available format replacements:

  • {long} — Full layout description (e.g., "English (US, intl., with dead keys)")
  • {short} — Short layout name (e.g., "us")
  • {shortDescription} — Brief layout description (e.g., "en")
  • {variant} — Layout variant (e.g., "intl")

Changes

  • src/modules/hyprland/language.cpp — Added tooltip text setting using label_.set_tooltip_text() with configurable tooltip-format
  • include/modules/hyprland/language.hpp — No changes needed (Layout struct already has all fields)

Closes #3693

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(hyprland/language) [Feature request] Tooltip on the module

1 participant